package com.gxa.xc.rbac.controller;

import com.gxa.xc.rbac.Service.impl.MenuSerivce;
import com.gxa.xc.rbac.dto.ResultDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpSession;

@Controller
@RequestMapping("/menu")
public class MenuController {

    @Autowired
    private MenuSerivce menuSerivce;

    @PostMapping("/list/data")
    @ResponseBody
    public ResultDTO getMenu(HttpSession session){
        System.out.println("打印出来");
        return  menuSerivce.getMenu(session);
    }

}
